<ion-view title="我">
    <ion-nav-buttons side="left">
        <button class="button button-clear button-light">易房网</button>
    </ion-nav-buttons>
    <ion-nav-buttons side="right" >
        <button class="button  button-clear" ng-if="accessToken!=null" ng-click="logout()">注销</button>
    </ion-nav-buttons>


    <ion-content class="setting" >
        <ion-list ng-if="accessToken!=null">

            <ion-item class="item item-avatar ">
                    <img ng-src="{{currentUser.avatar_url}}">
                    <h2>秦涛</h2>
            </ion-item>
            <ion-item href="#/ishop/my/order">
                我的订单
            </ion-item>

            <ion-item>
              我的收藏
            </ion-item>


           <!-- <button class="button button-block button-light" ng-click="logout()">
                退出当前账号
            </button>-->
        </ion-list>

        <form ng-submit="doLogin()" ng-if="accessToken==null">
            <div class=""></div>
            <div class="list  ">
                <label class="item item-input">

                    <input type="text" ng-model="loginData.username" placeholder="用户名">
                </label>

                <label class="item item-input">

                    <input type="password" ng-model="loginData.password" placeholder="密码">
                </label>
                <label class="item">
                    <button class="button button-block button-positive" type="submit">登 录</button>
                </label>
            </div>
        </form>

    </ion-content>


</ion-view>